import type { GeneratedEtsLibFile } from "../../types/generated";

export const FILE: GeneratedEtsLibFile = {
  path: 'ets/api/@ohos.pasteboard.d.ts',
  content: "/*\n * Copyright (c) 2021 Huawei Device Co., Ltd.\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *     http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n/**\n * @file\n * @kit BasicServicesKit\n */\nimport { AsyncCallback } from './@ohos.base';\nimport Want from './@ohos.app.ability.Want';\nimport image from './@ohos.multimedia.image';\nimport unifiedDataChannel from './@ohos.data.unifiedDataChannel';\n/**\n * systemPasteboard\n * @namespace pasteboard\n * @syscap SystemCapability.MiscServices.Pasteboard\n * @since 6\n */\n/**\n * systemPasteboard\n * @namespace pasteboard\n * @syscap SystemCapability.MiscServices.Pasteboard\n * @atomicservice\n * @since 11\n */\ndeclare namespace pasteboard {\n    /**\n     * Indicates the maximum number of records allowed in a PasteData object.\n     * @constant\n     * @syscap SystemCapability.MiscServices.Pasteboard\n     * @since 7\n     */\n    /**\n     * Indicates the maximum number of records allowed in a PasteData object.\n     * @constant\n     * @syscap SystemCapability.MiscServices.Pasteboard\n     * @atomicservice\n     * @since 11\n     */\n    const MAX_RECORD_NUM = 512;\n    /**\n     * Indicates MIME types of HTML text.\n     * @constant\n     * @syscap SystemCapability.MiscServices.Pasteboard\n     * @since 7\n     */\n    /**\n     * Indicates MIME types of HTML text.\n     * @constant\n     * @syscap SystemCapability.MiscServices.Pasteboard\n     * @atomicservice\n     * @since 11\n     */\n    const MIMETYPE_TEXT_HTML = 'text/html';\n    /**\n     * Indicates MIME types of wants.\n     * @constant\n     * @syscap SystemCapability.MiscServices.Pasteboard\n     * @since 7\n     */\n    /**\n     * Indicates MIME types of wants.\n     * @constant\n     * @syscap SystemCapability.MiscServices.Pasteboard\n     * @atomicservice\n     * @since 11\n     */\n    const MIMETYPE_TEXT_WANT = 'text/want';\n    /**\n     * Indicates MIME types of plain text.\n     * @constant\n     * @syscap SystemCapability.MiscServices.Pasteboard\n     * @since 7\n     */\n    /**\n     * Indicates MIME types of plain text.\n     * @constant\n     * @syscap SystemCapability.MiscServices.Pasteboard\n     * @atomicservice\n     * @since 11\n     */\n    const MIMETYPE_TEXT_PLAIN = 'text/plain';\n    /**\n     * Indicates MIME types of URIs.\n     * @constant\n     * @syscap SystemCapability.MiscServices.Pasteboard\n     * @since 7\n     */\n    /**\n     * Indicates MIME types of URIs.\n     * @constant\n     * @syscap SystemCapability.MiscServices.Pasteboard\n     * @atomicservice\n     * @since 11\n     */\n    const MIMETYPE_TEXT_URI = 'text/uri';\n    /**\n     * Indicates MIME type of PixelMap.\n     * @constant\n     * @syscap SystemCapability.MiscServices.Pasteboard\n     * @since 9\n     */\n    /**\n     * Indicates MIME type of PixelMap.\n     * @constant\n     * @syscap SystemCapability.MiscServices.Pasteboard\n     * @atomicservice\n     * @since 11\n     */\n    const MIMETYPE_PIXELMAP = 'pixelMap';\n    /**\n     * Indicates type of value.\n     * @type { string | image.PixelMap | Want | ArrayBuffer }\n     * @syscap SystemCapability.MiscServices.Pasteboard\n     * @since 9\n     */\n    /**\n     * Indicates type of value.\n     * @typedef { string | image.PixelMap | Want | ArrayBuffer }\n     * @syscap SystemCapability.MiscServices.Pasteboard\n     * @atomicservice\n     * @since 11\n     */\n    type ValueType = string | image.PixelMap | Want | ArrayBuffer;\n    /**\n     * Creates a PasteData object for PasteData#MIMETYPE_TEXT_HTML.\n     * @param { string } htmlText - To save the Html text content.\n     * @returns { PasteData } Containing the contents of the clipboard content object.\n     * @syscap SystemCapability.MiscServices.Pasteboard\n     * @since 7\n     * @deprecated since 9\n     * @useinstead ohos.pasteboard.pasteboard#createData\n     */\n    function createHtmlData(htmlText: string): PasteData;\n    /**\n     * Creates a PasteData object for PasteData#MIMETYPE_TEXT_WANT.\n     * @param { Want } want - To save the want of content.\n     * @returns { PasteData } Containing the contents of the clipboard content object.\n     * @syscap SystemCapability.MiscServices.Pasteboard\n     * @since 7\n     * @deprecated since 9\n     * @useinstead ohos.pasteboard.pasteboard#createData\n     */\n    function createWantData(want: Want): PasteData;\n    /**\n     * Creates a PasteData object for PasteData#MIMETYPE_TEXT_PLAIN.\n     * @param { string } text - To save the text of content.\n     * @returns { PasteData } Containing the contents of the clipboard content object.\n     * @syscap SystemCapability.MiscServices.Pasteboard\n     * @since 6\n     * @deprecated since 9\n     * @useinstead ohos.pasteboard.pasteboard#createData\n     */\n    function createPlainTextData(text: string): PasteData;\n    /**\n     * Creates a PasteData object for PasteData#MIMETYPE_TEXT_URI.\n     * @param { string } uri - To save the uri of content.\n     * @returns { PasteData } Containing the contents of the clipboard content object.\n     * @syscap SystemCapability.MiscServices.Pasteboard\n     * @since 7\n     * @deprecated since 9\n     * @useinstead ohos.pasteboard.pasteboard#createData\n     */\n    function createUriData(uri: string): PasteData;\n    /**\n     * Creates a PasteData object with MIME type and value.\n     * @param { string } mimeType - indicates MIME type of value, its size cannot be greater than 1024 bytes.\n     * @param { ValueType } value - indicates the content that is set to PasteData.\n     * @returns { PasteData } a new PasteData object which contains mimeType and value.\n     * @throws { BusinessError } 401 - Possible causes: 1. Mandatory parameters are left unspecified;\n     *    2. Incorrect parameters types;\n     *    3. Parameter verification failed.\n     * @syscap SystemCapability.MiscServices.Pasteboard\n     * @since 9\n     */\n    /**\n     * Creates a PasteData object of the specified type.\n     * @param { string } mimeType - indicates MIME type of value, its size cannot be greater than 1024 bytes.\n     * @param { ValueType } value - indicates the content that is set to PasteData.\n     * @returns { PasteData } a new PasteData object which contains mimeType and value.\n     * @throws { BusinessError } 401 - Possible causes: 1. Mandatory parameters are left unspecified;\n     *    2. Incorrect parameters types;\n     *    3. Parameter verification failed.\n     * @syscap SystemCapability.MiscServices.Pasteboard\n     * @atomicservice\n     * @since 11\n     */\n    function createData(mimeType: string, value: ValueType): PasteData;\n    /**\n     * Creates a PasteData object with the specified MIME types and values.\n     * @param { Record<string, ValueType> } data - indicates the MEME types and values of the PasteData object to create.\n     * @returns { PasteData } Returns the PasteData object created.\n     * @throws { BusinessError } 401 - Possible causes: 1. Mandatory parameters are left unspecified;\n     *    2. Incorrect parameters types;\n     *    3. Parameter verification failed.\n     * @syscap SystemCapability.MiscServices.Pasteboard\n     * @since 14\n     */\n    function createData(data: Record<string, ValueType>): PasteData;\n    /**\n     * Creates a Record object for PasteData#MIMETYPE_TEXT_HTML.\n     * @param { string } htmlText - To save the Html text content.\n     * @returns { PasteDataRecord } The content of a new record\n     * @syscap SystemCapability.MiscServices.Pasteboard\n     * @since 7\n     * @deprecated since 9\n     * @useinstead ohos.pasteboard.pasteboard#createRecord\n     */\n    function createHtmlTextRecord(htmlText: string): PasteDataRecord;\n    /**\n     * Creates a Record object for PasteData#MIMETYPE_TEXT_WANT.\n     * @param { Want } want - To save the want of content.\n     * @returns { PasteDataRecord } The content of a new record\n     * @syscap SystemCapability.MiscServices.Pasteboard\n     * @since 7\n     * @deprecated since 9\n     * @useinstead ohos.pasteboard.pasteboard#createRecord\n     */\n    function createWantRecord(want: Want): PasteDataRecord;\n    /**\n     * Creates a Record object for PasteData#MIMETYPE_TEXT_PLAIN.\n     * @param { string } text - To save the text of content.\n     * @returns { PasteDataRecord } The content of a new record\n     * @syscap SystemCapability.MiscServices.Pasteboard\n     * @since 7\n     * @deprecated since 9\n     * @useinstead ohos.pasteboard.pasteboard#createRecord\n     */\n    function createPlainTextRecord(text: string): PasteDataRecord;\n    /**\n     * Creates a Record object for PasteData#MIMETYPE_TEXT_URI.\n     * @param { string } uri - To save the uri of content.\n     * @returns { PasteDataRecord } The content of a new record\n     * @syscap SystemCapability.MiscServices.Pasteboard\n     * @since 7\n     * @deprecated since 9\n     * @useinstead ohos.pasteboard.pasteboard#createRecord\n     */\n    function createUriRecord(uri: string): PasteDataRecord;\n    /**\n     * Creates a record object with MIME type and value.\n     * @param { string } mimeType - indicates MIME type of value, its size cannot be greater than 1024 bytes.\n     * @param { ValueType } value - content to be saved.\n     * @returns { PasteDataRecord } a new PasteDataRecord object which contains mimeType and value.\n     * @throws { BusinessError } 401 - Possible causes: 1. Mandatory parameters are left unspecified;\n     *    2. Incorrect parameters types;\n     *    3. Parameter verification failed.\n     * @syscap SystemCapability.MiscServices.Pasteboard\n     * @since 9\n     */\n    /**\n     * Creates a PasteDataRecord object of the specified type.\n     * @param { string } mimeType - indicates MIME type of value, its size cannot be greater than 1024 bytes.\n     * @param { ValueType } value - Data content of the specified type.\n     * @returns { PasteDataRecord } A new paste data record of a specified type.\n     * @throws { BusinessError } 401 - Possible causes: 1. Mandatory parameters are left unspecified;\n     *    2. Incorrect parameters types;\n     *    3. Parameter verification failed.\n     * @syscap SystemCapability.MiscServices.Pasteboard\n     * @atomicservice\n     * @since 11\n     */\n    function createRecord(mimeType: string, value: ValueType): PasteDataRecord;\n    /**\n     * get SystemPasteboard\n     * @returns { SystemPasteboard } The system clipboard object\n     * @syscap SystemCapability.MiscServices.Pasteboard\n     * @since 6\n     */\n    /**\n     * get SystemPasteboard\n     * @returns { SystemPasteboard } The system clipboard object\n     * @syscap SystemCapability.MiscServices.Pasteboard\n     * @atomicservice\n     * @since 11\n     */\n    function getSystemPasteboard(): SystemPasteboard;\n    /**\n     * Types of scope that PasteData can be pasted.\n     * @enum { number }\n     * @syscap SystemCapability.MiscServices.Pasteboard\n     * @since 9\n     */\n    /**\n     * Types of scope that PasteData can be pasted.\n     * @enum { number }\n     * @syscap SystemCapability.MiscServices.Pasteboard\n     * @atomicservice\n     * @since 11\n     */\n    enum ShareOption {\n        /**\n         * INAPP indicates that only paste in the same app is allowed.\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @since 9\n         */\n        /**\n         * INAPP indicates that only intra-application pasting is allowed.\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @atomicservice\n         * @since 11\n         */\n        INAPP,\n        /**\n         * LOCALDEVICE indicates that paste in any app in this device is allowed.\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @since 9\n         */\n        /**\n         * LOCALDEVICE indicates that paste is allowed in any application.\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @atomicservice\n         * @since 11\n         */\n        LOCALDEVICE,\n        /**\n         * CROSSDEVICE indicates that paste in any app across devices is allowed.\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @since 9\n         */\n        /**\n         * CROSSDEVICE indicates that paste is allowed in any application across devices.\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @atomicservice\n         * @since 11\n         * @deprecated since 12\n         */\n        CROSSDEVICE\n    }\n    /**\n     * Enumerates the patterns allowed in the system pasteboard.\n     * @enum { number }\n     * @syscap SystemCapability.MiscServices.Pasteboard\n     * @since 13\n     */\n    enum Pattern {\n        /**\n         * URL pattern.\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @since 13\n         */\n        URL = 0,\n        /**\n         * Number pattern.\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @since 13\n         */\n        NUMBER = 1,\n        /**\n         * Email address pattern.\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @since 13\n         */\n        EMAIL_ADDRESS = 2\n    }\n    /**\n     * Paste data property.\n     * @interface PasteDataProperty\n     * @syscap SystemCapability.MiscServices.Pasteboard\n     * @since 7\n     */\n    /**\n     * Defines the properties of all data records on the pasteboard, including the timestamp, data type, pasteable range,\n     * and additional data. The defined properties can be applied to the pasteboard only with the setProperty method.\n     * @interface PasteDataProperty\n     * @syscap SystemCapability.MiscServices.Pasteboard\n     * @atomicservice\n     * @since 11\n     */\n    interface PasteDataProperty {\n        /**\n         * additional property data. key-value pairs.\n         * @type { object }\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @since 7\n         */\n        /**\n         * additional property data. key-value pairs.\n         * @type { object }\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @atomicservice\n         * @since 11\n         */\n        additions: {\n            [key: string]: object;\n        };\n        /**\n         * non-repeating MIME types of all records in PasteData.\n         * @type { Array<string> }\n         * @readonly\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @since 7\n         */\n        /**\n         * non-repeating MIME types of all records in PasteData.\n         * @type { Array<string> }\n         * @readonly\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @atomicservice\n         * @since 11\n         */\n        readonly mimeTypes: Array<string>;\n        /**\n         * the user-defined tag of a PasteData object.\n         * @type { string }\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @since 7\n         */\n        /**\n         * the user-defined tag of a PasteData object.\n         * @type { string }\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @atomicservice\n         * @since 11\n         */\n        tag: string;\n        /**\n         * a timestamp, which indicates when data is written to the system pasteboard.\n         * @type { number }\n         * @readonly\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @since 7\n         */\n        /**\n         * a timestamp, which indicates when data is written to the system pasteboard.\n         * @type { number }\n         * @readonly\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @atomicservice\n         * @since 11\n         */\n        readonly timestamp: number;\n        /**\n         * Checks whether PasteData is set for local access only.\n         * @type { boolean }\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @since 7\n         */\n        /**\n         * Checks whether PasteData is set for local access only.\n         * @type { boolean }\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @atomicservice\n         * @since 11\n         */\n        localOnly: boolean;\n        /**\n         * Indicates the scope of clipboard data which can be pasted.\n         * If it is not set or is incorrectly set, The default value is CrossDevice.\n         * @type { ShareOption }\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @since 9\n         */\n        /**\n         * Indicates the scope of clipboard data which can be pasted.\n         * If it is not set or is incorrectly set, The default value is CrossDevice.\n         * @type { ShareOption }\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @atomicservice\n         * @since 11\n         */\n        shareOption: ShareOption;\n    }\n    /**\n     * Paste data record.\n     * @interface PasteDataRecord\n     * @syscap SystemCapability.MiscServices.Pasteboard\n     * @since 7\n     */\n    /**\n     * Paste data record.\n     * @interface PasteDataRecord\n     * @syscap SystemCapability.MiscServices.Pasteboard\n     * @atomicservice\n     * @since 11\n     */\n    interface PasteDataRecord {\n        /**\n         * HTML text in a record.\n         * @type { string }\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @since 7\n         */\n        /**\n         * HTML text in a record.\n         * @type { string }\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @atomicservice\n         * @since 11\n         */\n        htmlText: string;\n        /**\n         * an want in a record.\n         * @type { Want }\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @since 7\n         */\n        /**\n         * an want in a record.\n         * @type { Want }\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @atomicservice\n         * @since 11\n         */\n        want: Want;\n        /**\n         * MIME types of a record.\n         * @type { string }\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @since 7\n         */\n        /**\n         * MIME types of a record.\n         * @type { string }\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @atomicservice\n         * @since 11\n         */\n        mimeType: string;\n        /**\n         * plain text in a record.\n         * @type { string }\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @since 7\n         */\n        /**\n         * plain text in a record.\n         * @type { string }\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @atomicservice\n         * @since 11\n         */\n        plainText: string;\n        /**\n         * an URI in a record.\n         * @type { string }\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @since 7\n         */\n        /**\n         * an URI in a record.\n         * @type { string }\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @atomicservice\n         * @since 11\n         */\n        uri: string;\n        /**\n         * PixelMap in a record.\n         * @type { image.PixelMap }\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @since 9\n         */\n        /**\n         * PixelMap in a record.\n         * @type { image.PixelMap }\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @atomicservice\n         * @since 11\n         */\n        pixelMap: image.PixelMap;\n        /**\n         * Custom data in a record, mimeType indicates the MIME type of custom data, ArrayBuffer indicates the value of custom data.\n         * @type { object }\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @since 9\n         */\n        /**\n         * Custom data in a record, mimeType indicates the MIME type of custom data, ArrayBuffer indicates the value of custom data.\n         * @type { object }\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @atomicservice\n         * @since 11\n         */\n        data: {\n            [mimeType: string]: ArrayBuffer;\n        };\n        /**\n         * Converts data in PasteData to text format.\n         * @param { AsyncCallback<string> } callback - the callback of convertToText.\n         * @throws { BusinessError } 401 - Possible causes: Incorrect parameters types.\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.pasteboard.pasteboard#convertToTextV9\n         */\n        convertToText(callback: AsyncCallback<string>): void;\n        /**\n         * Converts data in PasteData to text format.\n         * @returns { Promise<string> } the promise returned by the function.\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.pasteboard.pasteboard#convertToTextV9\n         */\n        convertToText(): Promise<string>;\n        /**\n         * Converts data in PasteData to text format.\n         * @returns { string } the string returned by the function.\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @since 9\n         */\n        /**\n         * Converts data in PasteData to text format.\n         * @returns { string } the string returned by the function.\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @atomicservice\n         * @since 11\n         */\n        toPlainText(): string;\n        /**\n         * Adds data to the PasteDataRecord object.\n         * @param { string } type - indicates MIME type of the value to add. It cannot exceed 1024 bytes.\n         * @param { ValueType } value - indicates the value of the data to add.\n         * @throws { BusinessError } 401 - Possible causes: 1. Mandatory parameters are left unspecified;\n         *    2. Incorrect parameters types;\n         *    3. Parameter verification failed.\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @since 14\n         */\n        addEntry(type: string, value: ValueType): void;\n        /**\n         * Obtains the valid types in the PasteDataRecord object.\n         * @param { Array<string> } types - indicates an array of types from which the valid types are obtained.\n         * @returns { Array<string> } Returns the valid types obtained.\n         * @throws { BusinessError } 401 - Possible causes: 1. Mandatory parameters are left unspecified;\n         *    2. Incorrect parameters types;\n         *    3. Parameter verification failed.\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @since 14\n         */\n        getValidTypes(types: Array<string>): Array<string>;\n        /**\n         * Obtains data of the specified type.\n         * @param { string } type - indicates the type of the data to obtain.\n         * @returns { Promise<ValueType> } Promise used to return the data obtained.\n         * @throws { BusinessError } 401 - Possible causes: 1. Mandatory parameters are left unspecified;\n         *    2. Incorrect parameters types;\n         *    3. Parameter verification failed.\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @since 14\n         */\n        getData(type: string): Promise<ValueType>;\n    }\n    /**\n     * Classes for paste data.\n     * @interface PasteData\n     * @syscap SystemCapability.MiscServices.Pasteboard\n     * @since 6\n     */\n    /**\n     * Classes for paste data.\n     * @interface PasteData\n     * @syscap SystemCapability.MiscServices.Pasteboard\n     * @atomicservice\n     * @since 11\n     */\n    interface PasteData {\n        /**\n         * Adds a Record for HTML text to a PasteData object, and updates the MIME type to PasteData#MIMETYPE_TEXT_HTML in DataProperty.\n         * @param { string } htmlText - To save the Html text content.\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.pasteboard.pasteboard#addRecord\n         */\n        addHtmlRecord(htmlText: string): void;\n        /**\n         * Adds an want Record to a PasteData object, and updates the MIME type to PasteData#MIMETYPE_TEXT_WANT in DataProperty.\n         * @param { Want } want - To save the want content.\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.pasteboard.pasteboard#addRecord\n         */\n        addWantRecord(want: Want): void;\n        /**\n         * Adds a PasteRecord to a PasteData object and updates MIME types in DataProperty.\n         * @param { PasteDataRecord } record - The content of a new record.\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @since 7\n         */\n        /**\n         * Adds a PasteRecord to a PasteData object and updates MIME types in DataProperty.\n         * @param { PasteDataRecord } record - The content of a new record.\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @atomicservice\n         * @since 11\n         */\n        addRecord(record: PasteDataRecord): void;\n        /**\n         * Adds a Record for plain text to a PasteData object, and updates the MIME type to PasteData#MIMETYPE_TEXT_PLAIN in DataProperty.\n         * @param { string } text - To save the text of content.\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.pasteboard.pasteboard#addRecord\n         */\n        addTextRecord(text: string): void;\n        /**\n         * Adds a URI Record to a PasteData object, and updates the MIME type to PasteData#MIMETYPE_TEXT_URI in DataProperty.\n         * @param { string } uri - To save the uri of content.\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.pasteboard.pasteboard#addRecord\n         */\n        addUriRecord(uri: string): void;\n        /**\n         * Adds a record with mimeType and value to a PasteData object.\n         * @param { string } mimeType - indicates the MIME type of value, its size cannot be greater than 1024 bytes.\n         * @param { ValueType } value - content to be saved.\n         * @throws { BusinessError } 401 - Possible causes: 1. Mandatory parameters are left unspecified;\n         *    2. Incorrect parameters types;\n         *    3. Parameter verification failed.\n         * @throws { BusinessError } 12900002 - The number of records exceeds the upper limit.\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @since 9\n         */\n        /**\n         * Adds a record with mimeType and value to a PasteData object.\n         * @param { string } mimeType - indicates the MIME type of value, its size cannot be greater than 1024 bytes.\n         * @param { ValueType } value - content to be saved.\n         * @throws { BusinessError } 401 - Possible causes: 1. Mandatory parameters are left unspecified;\n         *    2. Incorrect parameters types;\n         *    3. Parameter verification failed.\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @since 10\n         */\n        /**\n         * Adds a record with mimeType and value to a PasteData object.\n         * @param { string } mimeType - indicates the MIME type of value, its size cannot be greater than 1024 bytes.\n         * @param { ValueType } value - content to be saved.\n         * @throws { BusinessError } 401 - Possible causes: 1. Mandatory parameters are left unspecified;\n         *    2. Incorrect parameters types;\n         *    3. Parameter verification failed.\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @atomicservice\n         * @since 11\n         */\n        addRecord(mimeType: string, value: ValueType): void;\n        /**\n         * MIME types of all content on the pasteboard.\n         * @returns { Array<string> } type of array\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @since 7\n         */\n        /**\n         * MIME types of all content on the pasteboard.\n         * @returns { Array<string> } type of array\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @atomicservice\n         * @since 11\n         */\n        getMimeTypes(): Array<string>;\n        /**\n         * HTML text of the primary record in a PasteData object.\n         * @returns { string } type of htmltext\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @since 7\n         */\n        /**\n         * HTML text of the primary record in a PasteData object.\n         * @returns { string } type of htmltext\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @atomicservice\n         * @since 11\n         */\n        getPrimaryHtml(): string;\n        /**\n         * the want of the primary record in a PasteData object.\n         * @returns { Want } type of want\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @since 7\n         */\n        /**\n         * the want of the primary record in a PasteData object.\n         * @returns { Want } type of want\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @atomicservice\n         * @since 11\n         */\n        getPrimaryWant(): Want;\n        /**\n         * the MIME type of the primary record in a PasteData object.\n         * @returns { string } type of mimetype\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @since 7\n         */\n        /**\n         * the MIME type of the primary record in a PasteData object.\n         * @returns { string } type of mimetype\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @atomicservice\n         * @since 11\n         */\n        getPrimaryMimeType(): string;\n        /**\n         * the plain text of the primary record in a PasteData object.\n         * @returns { string } type of text\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @since 6\n         */\n        /**\n         * the plain text of the primary record in a PasteData object.\n         * @returns { string } type of text\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @atomicservice\n         * @since 11\n         */\n        getPrimaryText(): string;\n        /**\n         * the URI of the primary record in a PasteData object.\n         * @returns { string } type of uri\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @since 7\n         */\n        /**\n         * the URI of the primary record in a PasteData object.\n         * @returns { string } type of uri\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @atomicservice\n         * @since 11\n         */\n        getPrimaryUri(): string;\n        /**\n         * Gets the primary PixelMap record in a PasteData object.\n         * @returns { image.PixelMap } pixelMap\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @since 9\n         */\n        /**\n         * Gets the primary PixelMap record in a PasteData object.\n         * @returns { image.PixelMap } pixelMap\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @atomicservice\n         * @since 11\n         */\n        getPrimaryPixelMap(): image.PixelMap;\n        /**\n         * DataProperty of a PasteData object.\n         * @returns { PasteDataProperty } PasteDataProperty type of PasteDataProperty\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @since 7\n         */\n        /**\n         * DataProperty of a PasteData object.\n         * @returns { PasteDataProperty } PasteDataProperty type of PasteDataProperty\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @atomicservice\n         * @since 11\n         */\n        getProperty(): PasteDataProperty;\n        /**\n         * Sets PasteDataProperty to a PasteData object, Modifying shareOption is supported only.\n         * @param { PasteDataProperty } property - save property to PasteData object.\n         * @throws { BusinessError } 401 - Possible causes: 1. Mandatory parameters are left unspecified;\n         *    2. Incorrect parameters types.\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @since 9\n         */\n        /**\n         * Sets PasteDataProperty to a PasteData object, Modifying shareOption is supported only.\n         * @param { PasteDataProperty } property - save property to PasteData object.\n         * @throws { BusinessError } 401 - Possible causes: 1. Mandatory parameters are left unspecified;\n         *    2. Incorrect parameters types.\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @atomicservice\n         * @since 11\n         */\n        setProperty(property: PasteDataProperty): void;\n        /**\n         * Gets record by index in PasteData.\n         * @param { number } index - indicates the record index in PasteData.\n         * @returns { PasteDataRecord } the record in PasteData with index.\n         * @throws { BusinessError } 401 - Possible causes: 1. Mandatory parameters are left unspecified;\n         *    2. Incorrect parameters types.\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.pasteboard.pasteboard#getRecord\n         */\n        getRecordAt(index: number): PasteDataRecord;\n        /**\n         * Gets record by index in PasteData.\n         * @param { number } index - indicates the record index in PasteData.\n         * @returns { PasteDataRecord } the record in PasteData with index.\n         * @throws { BusinessError } 401 - Possible causes: 1. Mandatory parameters are left unspecified;\n         *    2. Incorrect parameters types.\n         * @throws { BusinessError } 12900001 - The index is out of the record.\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @since 9\n         */\n        /**\n         * Gets record by index in PasteData.\n         * @param { number } index - indicates the record index in PasteData.\n         * @returns { PasteDataRecord } the record in PasteData with index.\n         * @throws { BusinessError } 401 - Possible causes: 1. Mandatory parameters are left unspecified;\n         *    2. Incorrect parameters types.\n         * @throws { BusinessError } 12900001 - The index is out of the record.\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @atomicservice\n         * @since 11\n         */\n        getRecord(index: number): PasteDataRecord;\n        /**\n         * the number of records in a PasteData object.\n         * @returns { number } The number of the clipboard contents\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @since 7\n         */\n        /**\n         * the number of records in a PasteData object.\n         * @returns { number } The number of the clipboard contents\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @atomicservice\n         * @since 11\n         */\n        getRecordCount(): number;\n        /**\n         * the user-defined tag of a PasteData object.\n         * @returns { string } type of tag\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @since 7\n         */\n        /**\n         * the user-defined tag of a PasteData object.\n         * @returns { string } type of tag\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @atomicservice\n         * @since 11\n         */\n        getTag(): string;\n        /**\n         * Checks whether there is a specified MIME type of data in DataProperty.\n         * @param { string } mimeType - indicates to query data type.\n         * @returns { boolean } if having mimeType in PasteData returns true, else returns false.\n         * @throws { BusinessError } 401 - Possible causes: 1. Mandatory parameters are left unspecified;\n         *    2. Incorrect parameters types.\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.pasteboard.pasteboard#hasType\n         */\n        hasMimeType(mimeType: string): boolean;\n        /**\n         * Checks whether there is a specified MIME type of data in DataProperty.\n         * @param { string } mimeType - indicates to query data type.\n         * @returns { boolean } if having mimeType in PasteData returns true, else returns false.\n         * @throws { BusinessError } 401 - Possible causes: 1. Mandatory parameters are left unspecified;\n         *    2. Incorrect parameters types.\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @since 9\n         */\n        /**\n         * Checks whether there is a specified MIME type of data in DataProperty.\n         * @param { string } mimeType - indicates to query data type.\n         * @returns { boolean } if having mimeType in PasteData returns true, else returns false.\n         * @throws { BusinessError } 401 - Possible causes: 1. Mandatory parameters are left unspecified;\n         *    2. Incorrect parameters types.\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @atomicservice\n         * @since 11\n         */\n        hasType(mimeType: string): boolean;\n        /**\n         * Removes a Record based on a specified index.\n         * @param { number } index - indicates the record index in PasteData.\n         * @returns { boolean } The query returns True on success, or False on failure.\n         * @throws { BusinessError } 401 - Possible causes: 1. Mandatory parameters are left unspecified;\n         *    2. Incorrect parameters types.\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.pasteboard.pasteboard#removeRecord\n         */\n        removeRecordAt(index: number): boolean;\n        /**\n         * Removes a Record based on a specified index.\n         * @param { number } index - indicates the record index in PasteData.\n         * @throws { BusinessError } 401 - Possible causes: 1. Mandatory parameters are left unspecified;\n         *    2. Incorrect parameters types.\n         * @throws { BusinessError } 12900001 - The index is out of the record.\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @since 9\n         */\n        /**\n         * Removes a Record based on a specified index.\n         * @param { number } index - indicates the record index in PasteData.\n         * @throws { BusinessError } 401 - Possible causes: 1. Mandatory parameters are left unspecified;\n         *    2. Incorrect parameters types.\n         * @throws { BusinessError } 12900001 - The index is out of the record.\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @atomicservice\n         * @since 11\n         */\n        removeRecord(index: number): void;\n        /**\n         * Replaces a specified record with a new one.\n         * @param { number } index - indicates the record index in PasteData.\n         * @param { PasteDataRecord } record - the content of the replaced record.\n         * @returns { boolean } The query returns True on success, or False on failure.\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.pasteboard.pasteboard#replaceRecord\n         */\n        replaceRecordAt(index: number, record: PasteDataRecord): boolean;\n        /**\n         * Replaces a specified record with a new one.\n         * @param { number } index - indicates the record index in PasteData.\n         * @param { PasteDataRecord } record - the content of a new record.\n         * @throws { BusinessError } 401 - Possible causes: 1. Mandatory parameters are left unspecified;\n         *    2. Incorrect parameters types.\n         * @throws { BusinessError } 12900001 - The index is out of the record.\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @since 9\n         */\n        /**\n         * Replaces a specified record with a new one.\n         * @param { number } index - indicates the record index in PasteData.\n         * @param { PasteDataRecord } record - the content of the replaced record.\n         * @throws { BusinessError } 401 - Possible causes: 1. Mandatory parameters are left unspecified;\n         *    2. Incorrect parameters types.\n         * @throws { BusinessError } 12900001 - The index is out of the record.\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @atomicservice\n         * @since 11\n         */\n        replaceRecord(index: number, record: PasteDataRecord): void;\n        /**\n         * Utilized to notify pasteboard service while reading PasteData, in this case, the service will help to preserve the context and resources\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @since 12\n         */\n        pasteStart(): void;\n        /**\n         * Invoked to notify pasteboard service the utilization of PasteData has completed and occupied resources can be released for further usage\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @since 12\n         */\n        pasteComplete(): void;\n    }\n    /**\n     * Enumerates the types of file conflict options when getting data from the Pastedboard.\n     * @enum { number }\n     * @syscap SystemCapability.MiscServices.Pasteboard\n     * @atomicservice\n     * @since 15\n     */\n    enum FileConflictOptions {\n        /**\n         * OVERWRITE overwrite when destUri has file with same name.\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @atomicservice\n         * @since 15\n         */\n        OVERWRITE,\n        /**\n         * SKIP skip when destUri has file with same name.\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @atomicservice\n         * @since 15\n         */\n        SKIP\n    }\n    /**\n     * Enumerates the types of progress indicator when getting data from the Pastedboard.\n     * @enum { number }\n     * @syscap SystemCapability.MiscServices.Pasteboard\n     * @atomicservice\n     * @since 15\n     */\n    enum ProgressIndicator {\n        /**\n         * NONE getting data without system default progress indicator.\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @atomicservice\n         * @since 15\n         */\n        NONE,\n        /**\n         * DEFALUT getting data with system default progress indicator.\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @atomicservice\n         * @since 15\n         */\n        DEFAULT\n    }\n    /**\n     * Notifies progress when getting PasteData.\n     * @interface ProgressInfo\n     * @syscap SystemCapability.MiscServices.Pasteboard\n     * @atomicservice\n     * @since 15\n     */\n    interface ProgressInfo {\n        /**\n         * Progress when getting PasteData without using default system progress.\n         * @type { number }\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @atomicservice\n         * @since 15\n         */\n        progress: number;\n    }\n    /**\n     * Indicates progress of getting PasteData.\n     * @typedef { function } ProgressListener\n     * @syscap SystemCapability.MiscServices.Pasteboard\n     * @atomicservice\n     * @since 15\n     */\n    type ProgressListener = (progress: ProgressInfo) => void;\n    /**\n     * Indicates the signals to process default system progress task.\n     * @class ProgressSignal\n     * @syscap SystemCapability.MiscServices.Pasteboard\n     * @atomicservice\n     * @since 15\n     */\n    export class ProgressSignal {\n        /**\n         * Cancel the paste in progress.\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @atomicservice\n         * @since 15\n         */\n        cancel(): void;\n    }\n    /**\n     * Represents the get data parameters when getting PasteData from Pasteboard.\n     * @interface GetDataParams\n     * @syscap SystemCapability.MiscServices.Pasteboard\n     * @atomicservice\n     * @since 15\n     */\n    interface GetDataParams {\n        /**\n         * DestUri indicates the uri of dest path where copy files will be copied to sandbox of Application.\n         * @type { ?string }\n         * @default -\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @atomicservice\n         * @since 15\n         */\n        destUri?: string;\n        /**\n         * FileConflictOptions indicates fileConflictOptions when dest path has file with same name.\n         * @type { ?FileConflictOptions }\n         * @default FileConflictOptions.OVERWRITE\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @atomicservice\n         * @since 15\n         */\n        fileConflictOptions?: FileConflictOptions;\n        /**\n         * ProgressIndicator indicates whether to use default system progress indicator.\n         * @type { ProgressIndicator }\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @atomicservice\n         * @since 15\n         */\n        progressIndicator: ProgressIndicator;\n        /**\n         * ProgressListener indicates progress listener when getting PasteDate without using default system progress.\n         * @type { ?ProgressListener }\n         * @default -\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @atomicservice\n         * @since 15\n         */\n        progressListener?: ProgressListener;\n        /**\n         * Progress signal when getting PasteData with system progress indacator.\n         * @type { ?ProgressSignal }\n         * @default -\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @atomicservice\n         * @since 15\n         */\n        progressSignal?: ProgressSignal;\n    }\n    /**\n     * Classes for system pasteboard.\n     * @interface SystemPasteboard\n     * @syscap SystemCapability.MiscServices.Pasteboard\n     * @since 6\n     */\n    /**\n     * Classes for system pasteboard.\n     * @interface SystemPasteboard\n     * @syscap SystemCapability.MiscServices.Pasteboard\n     * @atomicservice\n     * @since 11\n     */\n    interface SystemPasteboard {\n        /**\n         * Callback invoked when pasteboard content changes.\n         * @param { 'update' } type - indicates pasteboard content changed.\n         * @param { function } callback - the callback to add.\n         * @throws { BusinessError }  401 - Possible causes: 1. Mandatory parameters are left unspecified;\n         *    2. Incorrect parameters types.\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @since 7\n         */\n        on(type: 'update', callback: () => void): void;\n        /**\n         * Remove a callback invoked when pasteboard content changes.\n         * @param { 'update' } type - indicates pasteboard content changed.\n         * @param { function } [callback] - the callback to remove. If this parameter is not filled in, it indicates that all\n         * callbacks for this application will be cleared. Otherwise, it indicates that the specified callback will be cleared.\n         * @throws { BusinessError }  401 - Possible causes: 1. Mandatory parameters are left unspecified;\n         *    2. Incorrect parameters types.\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @since 7\n         */\n        off(type: 'update', callback?: () => void): void;\n        /**\n         * Checks whether the data is remote.\n         * @returns { boolean } True is remote data, else false.\n         * @throws { BusinessError } 12900005 - Excessive processing time for internal data.\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @atomicservice\n         * @since 11\n         */\n        isRemoteData(): boolean;\n        /**\n         * Obtains the application bundle name of the data source.\n         * @returns { string }  Application bundle name of the data source.\n         * @throws { BusinessError } 12900005 - Excessive processing time for internal data.\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @atomicservice\n         * @since 11\n         */\n        getDataSource(): string;\n        /**\n         * Checks whether there is a specified MIME type of data in Data.\n         * @param { string } mimeType - indicates to query data type.\n         * @returns { boolean } if having mimeType in PasteData returns true, else returns false.\n         * @throws { BusinessError } 401 - Possible causes: 1. Mandatory parameters are left unspecified;\n         *    2. Incorrect parameters types.\n         * @throws { BusinessError } 12900005 - Excessive processing time for internal data.\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @atomicservice\n         * @since 11\n         */\n        hasDataType(mimeType: string): boolean;\n        /**\n         * Clears the pasteboard.\n         * @param { AsyncCallback<void> } callback - the callback of clearData.\n         * @throws { BusinessError } 401 - Possible causes: 1. Mandatory parameters are left unspecified;\n         *    2. Incorrect parameters types.\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.pasteboard.pasteboard#clearData\n         */\n        clear(callback: AsyncCallback<void>): void;\n        /**\n         * Clears the pasteboard.\n         * @returns { Promise<void> } the promise returned by the clearData.\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.pasteboard.pasteboard#clearData\n         */\n        clear(): Promise<void>;\n        /**\n         * Clears the pasteboard.\n         * @param { AsyncCallback<void> } callback - the callback of clearData.\n         * @throws { BusinessError } 401 - Possible causes: 1. Mandatory parameters are left unspecified;\n         *    2. Incorrect parameters types.\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @since 9\n         */\n        /**\n         * Clears the pasteboard.\n         * @param { AsyncCallback<void> } callback - the callback of clearData.\n         * @throws { BusinessError } 401 - Possible causes: 1. Mandatory parameters are left unspecified;\n         *    2. Incorrect parameters types.\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @atomicservice\n         * @since 11\n         */\n        clearData(callback: AsyncCallback<void>): void;\n        /**\n         * Clears the pasteboard.\n         * @returns { Promise<void> } the promise returned by the clearData.\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @since 9\n         */\n        /**\n         * Clears the pasteboard.\n         * @returns { Promise<void> } the promise returned by the clearData.\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @atomicservice\n         * @since 11\n         */\n        clearData(): Promise<void>;\n        /**\n         * Clears the pasteboard.\n         * @throws { BusinessError } 12900005 - Excessive processing time for internal data.\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @atomicservice\n         * @since 11\n         */\n        clearDataSync(): void;\n        /**\n         * Gets pastedata from the system pasteboard.\n         * @param { AsyncCallback<PasteData> } callback - the callback of getData.\n         * @throws { BusinessError } 401 - Possible causes: 1. Mandatory parameters are left unspecified;\n         *    2. Incorrect  parameters types.\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @since 6\n         * @deprecated since 9\n         * @useinstead ohos.pasteboard.pasteboard#getData\n         */\n        getPasteData(callback: AsyncCallback<PasteData>): void;\n        /**\n         * Gets pastedata from the system pasteboard.\n         * @returns { Promise<PasteData> } the promise returned by the getData.\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @since 6\n         * @deprecated since 9\n         * @useinstead ohos.pasteboard.pasteboard#getData\n         */\n        getPasteData(): Promise<PasteData>;\n        /**\n         * Gets pastedata from the system pasteboard.\n         * @param { AsyncCallback<PasteData> } callback - the callback of getData.\n         * @throws { BusinessError } 401 - Possible causes: 1. Mandatory parameters are left unspecified;\n         *    2. Incorrect  parameters types.\n         * @throws { BusinessError } 27787277 - Another copy or paste operation is in progress.\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @since 9\n         */\n        /**\n         * Gets pastedata from the system pasteboard.\n         * @param { AsyncCallback<PasteData> } callback - the callback of getData.\n         * @throws { BusinessError } 401 - Possible causes: 1. Mandatory parameters are left unspecified;\n         *    2. Incorrect  parameters types.\n         * @throws { BusinessError } 27787277 - Another copy or paste operation is in progress.\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Gets pastedata from the system pasteboard.\n         * @permission ohos.permission.READ_PASTEBOARD\n         * @param { AsyncCallback<PasteData> } callback - the callback of getData.\n         * @throws { BusinessError } 201 - Permission verification failed. The application does not have the\n         *    permission required to call the API.\n         * @throws { BusinessError } 401 - Possible causes: 1. Mandatory parameters are left unspecified;\n         *    2. Incorrect  parameters types.\n         * @throws { BusinessError } 27787277 - Another copy or paste operation is in progress.\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @atomicservice\n         * @since 12\n         */\n        getData(callback: AsyncCallback<PasteData>): void;\n        /**\n         * Gets pastedata from the system pasteboard.\n         * @returns { Promise<PasteData> } the promise returned by the getData.\n         * @throws { BusinessError } 27787277 - Another copy or paste operation is in progress.\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @since 9\n         */\n        /**\n         * Gets pastedata from the system pasteboard.\n         * @returns { Promise<PasteData> } the promise returned by the getData.\n         * @throws { BusinessError } 27787277 - Another copy or paste operation is in progress.\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Gets pastedata from the system pasteboard.\n         * @permission ohos.permission.READ_PASTEBOARD\n         * @returns { Promise<PasteData> } the promise returned by the getData.\n         * @throws { BusinessError } 201 - Permission verification failed. The application does not have the\n         *    permission required to call the API.\n         * @throws { BusinessError } 27787277 - Another copy or paste operation is in progress.\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @atomicservice\n         * @since 12\n         */\n        getData(): Promise<PasteData>;\n        /**\n         * Gets pasteData from the system pasteboard.\n         * @returns { PasteData }  a new PasteData.\n         * @throws { BusinessError } 12900005 - Excessive processing time for internal data.\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Gets pasteData from the system pasteboard.\n         * @permission ohos.permission.READ_PASTEBOARD\n         * @returns { PasteData }  a new PasteData.\n         * @throws { BusinessError } 201 - Permission verification failed. The application does not have the\n         *    permission required to call the API.\n         * @throws { BusinessError } 12900005 - Excessive processing time for internal data.\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @atomicservice\n         * @since 12\n         */\n        getDataSync(): PasteData;\n        /**\n         * Checks whether there is content in the pasteboard.\n         * @param { AsyncCallback<boolean> } callback - the callback of setPasteData.\n         * @throws { BusinessError } 401 - Possible causes: 1. Mandatory parameters are left unspecified;\n         *    2. Incorrect  parameters types.\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.pasteboard.pasteboard#hasData\n         */\n        hasPasteData(callback: AsyncCallback<boolean>): void;\n        /**\n         * Checks whether there is content in the pasteboard.\n         * @returns { Promise<boolean> } the promise returned by the function.\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.pasteboard.pasteboard#hasData\n         */\n        hasPasteData(): Promise<boolean>;\n        /**\n         * Checks whether there is content in the system pasteboard.\n         * @param { AsyncCallback<boolean> } callback - the callback of hasData.\n         * @throws { BusinessError } 401 - Possible causes: 1. Mandatory parameters are left unspecified;\n         *    2. Incorrect  parameters types.\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @since 9\n         */\n        /**\n         * Checks whether there is content in the system pasteboard.\n         * @param { AsyncCallback<boolean> } callback - the callback of hasData.\n         * @throws { BusinessError } 401 - Possible causes: 1. Mandatory parameters are left unspecified;\n         *    2. Incorrect  parameters types.\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @atomicservice\n         * @since 11\n         */\n        hasData(callback: AsyncCallback<boolean>): void;\n        /**\n         * Checks whether there is content in the system pasteboard.\n         * @returns { Promise<boolean> } the promise returned by the function.\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @since 9\n         */\n        /**\n         * Checks whether there is content in the system pasteboard.\n         * @returns { Promise<boolean> } the promise returned by the function.\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @atomicservice\n         * @since 11\n         */\n        hasData(): Promise<boolean>;\n        /**\n         * Checks whether there is content in the system pasteboard.\n         * @returns { boolean } True exists, false does not exist.\n         * @throws { BusinessError } 12900005 - Excessive processing time for internal data.\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @atomicservice\n         * @since 11\n         */\n        hasDataSync(): boolean;\n        /**\n         * Writes PasteData to the pasteboard.\n         * @param { PasteData } data - PasteData will be written to the clipboard\n         * @param { AsyncCallback<void> } callback - the callback of setPasteData.\n         * @throws { BusinessError } 401 - Possible causes: 1.  Mandatory parameters are left unspecified;\n         *    2. Incorrect  parameters types.\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @since 6\n         * @deprecated since 9\n         * @useinstead ohos.pasteboard.pasteboard#setData\n         */\n        setPasteData(data: PasteData, callback: AsyncCallback<void>): void;\n        /**\n         * Writes PasteData to the pasteboard.\n         * @param { PasteData } data - Containing the contents of the clipboard content object.\n         * @returns { Promise<void> } the promise returned by the function.\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @since 6\n         * @deprecated since 9\n         * @useinstead ohos.pasteboard.pasteboard#setData\n         */\n        setPasteData(data: PasteData): Promise<void>;\n        /**\n         * Writes PasteData to the system pasteboard.\n         * @param { PasteData } data - PasteData will be written to the clipboard\n         * @param { AsyncCallback<void> } callback - the callback of setData.\n         * @throws { BusinessError } 401 - Possible causes: 1. Mandatory parameters are left unspecified.\n         *    2. Incorrect parameters types.\n         * @throws { BusinessError } 27787277 - Another copy or paste operation is in progress.\n         * @throws { BusinessError } 27787278 - Replication is prohibited.\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @since 9\n         */\n        /**\n         * Writes PasteData to the system pasteboard.\n         * @param { PasteData } data - PasteData will be written to the clipboard\n         * @param { AsyncCallback<void> } callback - the callback of setData.\n         * @throws { BusinessError } 401 - Possible causes: 1. Mandatory parameters are left unspecified;\n         *    2. Incorrect parameters types.\n         * @throws { BusinessError } 27787277 - Another copy or paste operation is in progress.\n         * @throws { BusinessError } 27787278 - Replication is prohibited.\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @atomicservice\n         * @since 11\n         */\n        setData(data: PasteData, callback: AsyncCallback<void>): void;\n        /**\n         * Writes PasteData to the system pasteboard.\n         * @param { PasteData } data - PasteData will be written to the clipboard.\n         * @returns { Promise<void> } the promise returned by the function.\n         * @throws { BusinessError } 401 - Possible causes: 1. Mandatory parameters are left unspecified;\n         *    2. Incorrect  parameters types.\n         * @throws { BusinessError } 27787277 - Another copy or paste operation is in progress.\n         * @throws { BusinessError } 27787278 - Replication is prohibited.\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @since 9\n         */\n        /**\n         * Writes PasteData to the system pasteboard.\n         * @param { PasteData } data - PasteData will be written to the clipboard.\n         * @returns { Promise<void> } the promise returned by the function.\n         * @throws { BusinessError } 401 - Possible causes: 1. Mandatory parameters are left unspecified;\n         *    2. Incorrect  parameters types.\n         * @throws { BusinessError } 27787277 - Another copy or paste operation is in progress.\n         * @throws { BusinessError } 27787278 - Replication is prohibited.\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @atomicservice\n         * @since 11\n         */\n        setData(data: PasteData): Promise<void>;\n        /**\n         * Writes PasteData to the system pasteboard.\n         * @param { PasteData } data - PasteData will be written to the clipboard.\n         * @throws { BusinessError } 401 - Possible causes: 1. Mandatory parameters are left unspecified;\n         *    2. Incorrect parameters types.\n         * @throws { BusinessError } 12900005 - Excessive processing time for internal data.\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @atomicservice\n         * @since 11\n         */\n        setDataSync(data: PasteData): void;\n        /**\n         * Gets unified data from the system pasteboard.\n         * @permission ohos.permission.READ_PASTEBOARD\n         * @returns { Promise<unifiedDataChannel.UnifiedData> } the promise returned by the getData.\n         * @throws { BusinessError } 201 - Permission verification failed. The application does not have the\n         *    permission required to call the API.\n         * @throws { BusinessError } 27787277 - Another copy or paste operation is in progress.\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @atomicservice\n         * @since 12\n         */\n        getUnifiedData(): Promise<unifiedDataChannel.UnifiedData>;\n        /**\n         * Gets unified data from the system pasteboard.\n         * @permission ohos.permission.READ_PASTEBOARD\n         * @returns { unifiedDataChannel.UnifiedData }  a new UnifiedData.\n         * @throws { BusinessError } 201 - Permission verification failed. The application does not have the\n         *    permission required to call the API.\n         * @throws { BusinessError } 12900005 - Excessive processing time for internal data.\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @atomicservice\n         * @since 12\n         */\n        getUnifiedDataSync(): unifiedDataChannel.UnifiedData;\n        /**\n         * Writes unified data to the system pasteboard.\n         * @param { unifiedDataChannel.UnifiedData } data - Unified data will be written to the pasteboard.\n         * @returns { Promise<void> } the promise returned by the function.\n         * @throws { BusinessError } 401 - Possible causes: 1. Mandatory parameters are left unspecified;\n         *    2. Incorrect  parameters types.\n         * @throws { BusinessError } 27787277 - Another copy or paste operation is in progress.\n         * @throws { BusinessError } 27787278 - Replication is prohibited.\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @atomicservice\n         * @since 12\n         */\n        setUnifiedData(data: unifiedDataChannel.UnifiedData): Promise<void>;\n        /**\n         * Writes unified data to the system pasteboard.\n         * @param { unifiedDataChannel.UnifiedData } data - Unified data will be written to the pasteboard.\n         * @throws { BusinessError } 401 - Possible causes: 1. Mandatory parameters are left unspecified;\n         *    2. Incorrect  parameters types.\n         * @throws { BusinessError } 12900005 - Excessive processing time for internal data.\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @atomicservice\n         * @since 12\n         */\n        setUnifiedDataSync(data: unifiedDataChannel.UnifiedData): void;\n        \n        /**\n         * Sets a unified ShareOptions for your application, so that the PasteData copied from your application is applicable to this ShareOptions.\n         *\n         * @permission ohos.permission.MANAGE_PASTEBOARD_APP_SHARE_OPTION\n         * @param { ShareOption } shareOptions - Scope that PasteData can be pasted, The parameter can only be set InApp.\n         * @throws { BusinessError } 201 - Permission verification failed. The application does not have the\n         *     permission required to call the API.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         *                                                                   2. Incorrect parameter types;\n         *                                                                   3. Parameter verification failed.\n         * @throws { BusinessError } 12900006 - Settings already exist.\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @since 14\n         */\n        setAppShareOptions(shareOptions: ShareOption): void;\n        \n        /**\n         * Removes the unified ShareOptions of your application.\n         *\n         * @permission ohos.permission.MANAGE_PASTEBOARD_APP_SHARE_OPTION\n         * @throws { BusinessError } 201 - Permission verification failed. The application does not have the\n         *    permission required to call the API.\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @since 14\n         */\n        removeAppShareOptions(): void;\n        /**\n         * Detects the patterns in the pasteboard.\n         *\n         * @param { Array<Pattern> } patterns - Patterns to detect.\n         * @returns { Promise<Array<Pattern>> } Promise used to return the patterns detected.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         *                                                                   2. Incorrect parameter types;\n         *                                                                   3. Parameter verification failed.\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @since 13\n         */\n        detectPatterns(patterns: Array<Pattern>): Promise<Array<Pattern>>;\n        /**\n         * Get the MIME types in the pasteboard.\n         *\n         * @returns { Promise<Array<string>> } Promise used to return the MIME types.\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @atomicservice\n         * @since 14\n         */\n        getMimeTypes(): Promise<Array<string>>;\n        /**\n         * Gets the number of Pasteboard data changes.\n         *\n         * @returns { number } The number of Pasteboard data changes.\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @atomicservice\n         * @since 18\n         */\n        getChangeCount(): number;\n        /**\n         * Gets pastedata from the system pasteboard with system progress.\n         *\n         * @permission ohos.permission.READ_PASTEBOARD\n         * @param { GetDataParams } params - Indicates the {@link GetDataParams}.\n         * @returns { Promise<PasteData> } The promise returned by the getData.\n         * @throws { BusinessError } 201 - Permission verification failed. The application does not have the\n         *     permission required to call the API.\n         * @throws { BusinessError } 401 - Parameter error.\n         * @throws { BusinessError } 12900003 - Another copy or paste operation is in progress.\n         * @throws { BusinessError } 12900007 - Invalid destUri or file system error.\n         * @throws { BusinessError } 12900008 - Failed to start progress.\n         * @throws { BusinessError } 12900009 - Progress exits abnormally.\n         * @throws { BusinessError } 12900010 - System error occurred during paste execution.\n         * @syscap SystemCapability.MiscServices.Pasteboard\n         * @atomicservice\n         * @since 15\n         */\n        getDataWithProgress(params: GetDataParams): Promise<PasteData>;\n    }\n}\nexport default pasteboard;\n",
}
export default FILE;